﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication
{
    public partial class TreeViewTest : Form
    {
        public TreeViewTest()
        {
            InitializeComponent();
        }

        private void TreeViewTest_Load(object sender, EventArgs e)
        {
            treeView1.BeginUpdate();
            for (int i = 0; i < 10000; i++)
            {
                treeView1.Nodes.Add("Parent " + i);
                for (int j = 0; j < 30; j++)
                {
                    treeView1.Nodes[i].Nodes.Add("Child "+j);
                }
            }
            treeView1.EndUpdate();

        }
    }
}
